package org.example;

import usual.org.Sy;

class Animal
{
    String name;
    protected boolean sex;

    Animal(String name, boolean sex)
    {
        this.name = name;
        this.sex = sex;
    }

    void eat()
    {
        Sy.print("I can eat.\n");
    }

    void sleep()
    {

        Sy.print("I can sleep.\n");
    }
}

class Dog extends Animal
{
    int a;

    Dog(String name, boolean sex, int a)
    {
        super(name, sex);
        this.a = a;
    }

    void eat()
    {
        Sy.print("I can eat dog food.\n");
    }
}

public class Test1
{
    public static void main(String[] args)
    {

    }
}
